package com.kongge.viewdisplayframeworklib.control;

import com.kongge.viewdisplayframeworklib.model.NavigateItem;
import com.kongge.viewdisplayframeworklib.view.NavigateBar;

public class NavigateBarControl {

	private NavigateBar mNavigateBar;

	public void SetNavigateBar(NavigateBar bar) {
		mNavigateBar = bar;
	}
	
	public NavigateBar getNavigateBar() {
		return mNavigateBar;
	}

	public void refreshNavigateBar(NavigateItem item) {
		if (mNavigateBar != null) {
			mNavigateBar.refresh(item);
		}
	}

	public void setHeight(int nHeight) {
		mNavigateBar.getLayoutParams().height = nHeight;
	}
	
}
